package com.yc.damai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 大麦商城-订单表-73
 * </p>
 *
 * @author 廖老师
 * @since 2024-06-20
 */
@TableName("dm_orders")
public class DmOrders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号, 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 总金额
     */
    private Double total;

    /**
     * 订单时间
     */
    private LocalDateTime createtime;

    /**
     * 状态: 0未支付,1已支付,2已发货,3已收货,4已评价,5已退货
     */
    private Integer state;

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 收货地址id: 关联 dm_address.id
     */
    private Integer aid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    @Override
    public String toString() {
        return "DmOrders{" +
        "id=" + id +
        ", total=" + total +
        ", createtime=" + createtime +
        ", state=" + state +
        ", uid=" + uid +
        ", aid=" + aid +
        "}";
    }
}
